package com.cq.androidtools.room1

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 作者: CQ
 * 日期: 2021-05-11
 * 说明:
 */
@Entity
class Student(
    @PrimaryKey(autoGenerate = true)
    var sId: Int,
    @ColumnInfo(name = "name1")
    var name: String,
    @ColumnInfo(name = "age")
    var age: Int
) {
    override fun toString(): String {
        return "Student(sId=$sId, name='$name', age=$age)"
    }
}